package com.qdxwx.models.user;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

//工作经历
public class UserWorkHistory implements Serializable {

    private static final long serialVersionUID = 5429075025473461688L;

    //主键id
    private int id;

    //userId
    private long userId;

    //单位名称
    private String workUnit;

    //在职时间段
    private String workDate;

    //所属职位
    private String position;

    //工作介绍
    private String workIntro;

    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getWorkUnit() {
        return workUnit;
    }

    public void setWorkUnit(String workUnit) {
        this.workUnit = workUnit;
    }

    public String getWorkDate() {
        return workDate;
    }

    public void setWorkDate(String workDate) {
        this.workDate = workDate;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getWorkIntro() {
        return workIntro;
    }

    public void setWorkIntro(String workIntro) {
        this.workIntro = workIntro;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "UserWorkHistory{" +
                "id=" + id +
                ", userId=" + userId +
                ", workUnit='" + workUnit + '\'' +
                ", workDate='" + workDate + '\'' +
                ", position='" + position + '\'' +
                ", workIntro='" + workIntro + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
